#include <iostream>
#include "operation.h"
#include "operation_factory.h"

using namespace std;

int main()
{
    double x = 0;
    double y = 0;
    string operate;
    cout << "Please input first number:" << endl;
    cin >> x;
    cout << "Please input operator(+, -, *, /):" << endl;
    cin >> operate;
    cout << "Please input second number:" << endl;
    cin >> y;

    Operation *op = OperationFactory::CreateOperation(operate);
    cout << "Output: " << op->GetResult(x, y) << endl;
    return 0;
}